using UnityEngine;
using QFramework;

namespace ProjectSurvivor
{
	public partial class Exp : GameplayObject//表示一个挂在场景物体上的控制器（如玩家、刷怪器）。
	{
		void OnTriggerEnter2D(Collider2D other)
		{
			if (other.GetComponent<CollectableArea>())
			{
				AudioKit.PlaySound("exp");
				Global.Exp.Value++;
				this.DestroyGameObjGracefully();
			}
		}
		public override Collider2D collision2D => SelfCircleCollider2D;
    }
}
